package com.xiao;


import com.xiao.utils.OssUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.annotation.PostConstruct;
import java.io.UnsupportedEncodingException;

@SpringBootApplication 
@MapperScan("com.xiao.mapper")
@EnableScheduling // 开启定时功能
public class BlogApplication {
    public static void main( String[] args ) {

        SpringApplication.run(BlogApplication.class,args);

        System.out.println( "blog-blog ---> Hello World!" );

    }

    @Autowired
    OssUtils ossUtils;


    @PostConstruct// 当项目启动时运行，测试用
    public void  test() throws UnsupportedEncodingException {

    }
}
